"""
    create by IAmFiveHigh on 2024/8/10
"""
from max_heap import MaxHeap


class PriorityQueue:
    def __init__(self):
        self.heap = MaxHeap()

    def get_size(self) -> int:
        return self.heap.get_size()

    def is_empty(self) -> bool:
        return self.heap.is_empty()

    def enqueue(self, element):
        self.heap.add(element)

    def dequeue(self):
        return self.heap.extract_max()

    def get_front(self):
        return self.heap.find_max()
